package com.csun.cmny.provider.model.dto.rfid;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-08-24 13:24
 * @Description: the class rfid event oldman deal dto
 */
@Data
public class RfidEventOldmanDealDto {

    @NotNull(message = "{rfid.event.id.null}")
    private Long id;

    @NotNull(message = "{rfid.event.oldman.deal.result.null}")
    @Range(min = 0, max = 1, message = "{rfid.event.oldman.deal.result.range}")
    private Integer dealResult;

}
